Repository navigation
Fix form submission and field wiring (#66, Part 1) - #67
Merged
Merged
Conversation
Disabled with the surrounding FormField, linked to the visible control so Form and ValidationSummary can clear and focus it (#66, 1.1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rs (#66, 1.4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1.8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….10) Matches SearchableSelect and ApiSelect. The web demos and pages are updated for the new signature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 17, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 1 of #66 (form submission and field wiring). There is one commit per item, and each adds a test that failed before the fix plus a changeset.
FieldValue(components/form/_field-value.tsx) is the one hidden field every composite control submits through:NumberInput,TagsInput, the combobox behindSearchableSelect/ApiSelect, every date and time picker,ColorPicker,IconPicker,SegmentedControl,DualListbox,Rating. It is disabled when the control or itsFormFieldis disabled. It carriesdata-controlpointing at the visible control, sofindField(andValidationSummary) can focus it from the field name. When its value changes it clears that field's server error inForm, through a small context inform-context.tsx. An empty array submits nothing but leaves a disabled marker, so an emptyTagsInputcan still be found by name.PickerShell'shiddenrender prop becamesubmit: (name) => [name, value][].PhoneInputsubmits the E.164 value; the formatted text box has noname.TagsInputis natively required only while it has no tags.ColorPicker/IconPickerno longer putrequired/aria-requiredon their trigger button. The axe tests now also scan the requiredFormFieldcase.DateRangePickersubmits undernameswithoutname.FormbuildsFormDatawith the submitter.useOnChangewas replaced byuseParentChange(parent, value, waiting, reset). A dependent select clears only when its value was settled under the old parent: the field wasn't waiting, and the value didn't change in the same render.Button/LinkButtonalways setdata-slot="button", after the caller's props.SlugInput/Radiomerge a caller'saria-describedbyinstead of letting it win.Selectis nowvalue: string | nullandonValueChange(value, option), likeSearchableSelect/ApiSelect(aminorchangeset). The web demos and pages are updated.Behaviour changes to note:
DatePickerwith no days chosen now submits nothing (it used to submitname=""), likeTagsInput/DualListbox.PhoneInput's visible input no longer has aname.Verification
pnpm lint,pnpm typecheck,node scripts/check-docs.mjs: passpnpm format:check: passes for every tracked filepnpm test: 2,858 passed, 1 skipped; MCP 16 passedpnpm buildandpnpm --filter @javaabu/onu size: pass, with no budget changespnpm build:web: passese2e/nextjsbuild andtest:ssr: clean in English and Dhivehipnpm e2e:chromium: all 528 a11y and Thaana tests pass. The 334 visual tests failed only because there are no local baselines (they live in the CI artifact), so the visual comparison wasn't run locally.🤖 Generated with Claude Code